package com.zhaowenhao.hello.demo.service.impl;

import java.text.SimpleDateFormat;
import java.util.Date;

import com.zhaowenhao.hello.demo.service.IQueryService;
import com.zhaowenhao.hello.spring.framework.annotation.WHService;


@WHService
public class QueryService implements IQueryService {


    /**
     * 查询
     */
    @Override
    public String query(String name) {
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        String time = sdf.format(new Date());
        String json = "{name:\"" + name + "\",time:\"" + time + "\"}";
        return json;
    }

}
